<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <#assign base=request.contextPath  />
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title>WISSC轮滑教培服务网-查询系统</title>
    <link rel="icon" href="${base}/favicon.ico">
    <link rel="stylesheet" type="text/css" href="${base}/frame/layui/css/layui.css"/>
    <script src="${base}/js/jquery/jquery.min.js"></script>
    <script src="${base}/frame/layui/layui.all.js" charset="utf-8"></script>
    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.js"></script>
    <title></title>
    <style type="text/css">
        .mui-text-centernn{
            text-align: center;
        }
        .mui-text-centernn h2{
            padding: 1.25rem;
            font-weight: 700;
            font-size: 32px;
            font-family: "PingFang SC","Microsoft YaHei","微软雅黑","Microsoft JhengHei","黑体",arial,STHeiti,'\5b8b\4f53';
        }
        .layui-input{
            width: 250px;
        }
        .layui-btn-primary{
            background-color: #A60000;
            color: #000000;
            opacity: 0.5;
        }
        .fontsize{
            font-size: 14px;
            color: rgba(162, 158, 158, 1);
            font-weight: 700;
            margin-top: 10%;
        }
        select{
            width: 300px;
            height: 38px;
            line-height: 1.3;
            line-height: 38px\9;
            border-width: 1px;
            border-style: solid;
            background-color: #fff;
            border-radius: 2px;
        }
        .buttondemo{
            position: absolute;
            right: 10px;
            top: 13%;
        }
        @media screen and (max-width:599px) {
            .buttondemo{
                top: 2%;
            }
        }
        button{
            opacity:0.8;
            filter:alpha(opacity=50);
        }
        .layui-btn-sm {
            height: 25px;
            color: #000;
            font-weight: bold;
            line-height: 25px;
            padding: 0px 18px;
            font-size: 12px;
        }
        .texttt{
            transform: scale(0.85) !important;
            width: 255px;
            font-size: 12px;
            color: rgba(162, 158, 158, 1);
            text-align: right;
        }
    </style>
</head>
<body>
<script>
    //控制跳出ifream框架
    if (window != top)
        top.location.href = location.href;
</script>
<div class="buttondemo">
    <button class="layui-btn layui-btn-primary layui-btn-sm" onclick="denglu()">管理员登陆</button>
</div>

<div class="mui-content">
    <img src="${base}/configure/getPhoto?path=${url}" style="width: 100%;height: 100%">
<#--
    <img src="${base}/team/getPhoto?path=${list[1].parameter}" style="width: 200px;height: 100px;">
-->
    <div class="mui-text-centernn">
         <h2>${ding}</h2>

        <script>
            $(function() {
                //隐藏div

                $("#shouhou1").hide();
                $("#shouhou3").hide();
                $("#shouhou2").hide();
                $("#shouhou4").hide();
                $("#shouhou5").hide();
                $("#shouhou6").hide();
                //给div添加change事件
                $("#type").change(function() {
                    if($(this).val() == 1 ) {
                        $("#shouhou1").show();
                        $("#shouhou2").hide();
                        $("#shouhou3").hide();
                        $("#shouhou4").hide();
                        $("#shouhou5").hide();
                        $("#shouhou6").hide();
                        $("#shouhou0").hide();
                    } else if($(this).val() == 2 ) {
                        $("#shouhou2").show();
                        $("#shouhou1").hide();
                        $("#shouhou3").hide();
                        $("#shouhou4").hide();
                        $("#shouhou5").hide();
                        $("#shouhou6").hide();
                        $("#shouhou0").hide();
                    }
                    else if($(this).val() == 3 ) {
                        $("#shouhou3").show();
                        $("#shouhou1").hide();
                        $("#shouhou2").hide();
                        $("#shouhou4").hide();
                        $("#shouhou5").hide();
                        $("#shouhou6").hide();
                        $("#shouhou0").hide();
                    }
                    else if($(this).val() == 4 ) {
                        $("#shouhou4").show();
                        $("#shouhou1").hide();
                        $("#shouhou2").hide();
                        $("#shouhou3").hide();
                        $("#shouhou5").hide();
                        $("#shouhou6").hide();
                        $("#shouhou0").hide();
                    }
                    else if($(this).val() == 5 ) {
                        $("#shouhou5").show();
                        $("#shouhou1").hide();
                        $("#shouhou2").hide();
                        $("#shouhou4").hide();
                        $("#shouhou3").hide();
                        $("#shouhou6").hide();
                        $("#shouhou0").hide();
                    }
                    else if($(this).val() == 6 ) {
                        $("#shouhou6").show();
                        $("#shouhou1").hide();
                        $("#shouhou2").hide();
                        $("#shouhou4").hide();
                        $("#shouhou3").hide();
                        $("#shouhou5").hide();
                        $("#shouhou0").hide();
                    }
                    else if($(this).val() == 0 ) {
                        $("#shouhou0").show();
                        $("#shouhou1").hide();
                        $("#shouhou2").hide();
                        $("#shouhou4").hide();
                        $("#shouhou3").hide();
                        $("#shouhou5").hide();
                        $("#shouhou6").hide();
                    }
                })



            })
        </script>
        <select class="select" size="1" name="type" id="type">

            <option value="0">查询项目选择</option>
            <option value="1"> 轮滑等级证书查询 </option>
            <option value="2"> 职业资格证书查询 </option>
            <option value="3"> 授权实施单位查询 </option>
            <option value="4"> 指定考核基地查询 </option>
            <option value="5"> 个人赛事积分查询 </option>
            <option value="6"> 战队赛事积分查询 </option>

        </select><br><br><br>

        <#--查询项目-->
        <div id="shouhou0" style>
            <div class="layui-inline">
                <div class="layui-input-inline">
                    <input lay-verify="required" autocomplete="off" id="idNumber" class="layui-input" placeholder="输入身份证号码" type="text">
                </div>
            </div><br><br>
            <div class="layui-inline">
                <div class="layui-input-inline">
                    <input lay-verify="required" autocomplete="off" id="idNo" class="layui-input" placeholder="输入证件编号" type="text">
                </div>
                <p class="texttt">*身份证号、证件号，二者选一即可</p>
            </div><br>

            <br>
            <button class="layui-btn layui-btn-primary" id="a" type="button" style="width: 250px;color: white">进 &nbsp;&nbsp;&nbsp;入</button>
        </div>



        <#--学员-->
        <div id="shouhou1" style>
            <div class="layui-inline">
                <div class="layui-input-inline">
                    <input lay-verify="required" autocomplete="off" id="stuidNumber" class="layui-input" placeholder="输入身份证号码" type="text">
                </div>
            </div><br><br>
            <div class="layui-inline">
                <div class="layui-input-inline">
                    <input lay-verify="required" autocomplete="off" id="stuidNo" class="layui-input" placeholder="输入证件编号" type="text">
                </div>
                <p class="texttt">*身份证号、证件号，二者选一即可</p>
            </div><br><br>
            <button class="layui-btn layui-btn-primary" id="k" type="button" style="width: 250px;color: white">进 &nbsp;&nbsp;&nbsp;入</button>
        </div>


        <!--资格-->
        <div id="shouhou2" style>
            <div class="layui-inline">
                <div class="layui-input-inline">
                    <input lay-verify="required" autocomplete="off" id="zheng" class="layui-input" placeholder="输入身份证号码" type="text">
                </div>
            </div><br><br>
            <div class="layui-inline">
                <div class="layui-input-inline">
                    <input lay-verify="required" autocomplete="off" id="bianhao" class="layui-input" placeholder="输入证件编号" type="text">
                </div>
                <p class="texttt">*身份证号、证件号，二者选一即可</p>
            </div><br><br>
            <button class="layui-btn layui-btn-primary" id="b" type="button" style="width: 250px;color: white">进 &nbsp;&nbsp;&nbsp;入</button>
        </div>


        <!--授权机构-->
        <div id="shouhou3" style>

            <div class="layui-inline">
                <div class="layui-input-inline">
                    <input lay-verify="required" autocomplete="off" id="au" class="layui-input" placeholder="输入单位名称" type="text">
                </div>
            </div> <br><br>
            <button class="layui-btn layui-btn-primary" id="c" type="button" style="width: 250px;color: white">进 &nbsp;&nbsp;&nbsp;入</button>
        </div>


        <!--指定考核基地查询-->
        <div id="shouhou4" style>

            <div class="layui-inline">
                <div class="layui-input-inline">
                    <input lay-verify="required" autocomplete="off" id="auName" class="layui-input" placeholder="输入单位名称" type="text">
                </div>
            </div><br><br>
            <button class="layui-btn layui-btn-primary" id="d" type="button" style="width: 250px;color: white">进 &nbsp;&nbsp;&nbsp;入</button>
        </div>


        <!--个人赛事-->
        <div id="shouhou5" style>
            <div class="layui-inline">
                <div class="layui-input-inline">
                    <input lay-verify="required" autocomplete="off" id="saishiIdNumber" class="layui-input" placeholder="输入身份证号码" type="text">
                </div>
            </div><br><br>
            <div class="layui-inline">
                <div class="layui-input-inline">
                    <input lay-verify="required" autocomplete="off" id="saishiName" class="layui-input" placeholder="输入姓名" type="text">
                </div>
                <p class="texttt">*身份证号、姓名，二者选一即可</p>
            </div> <br><br>
            <button class="layui-btn layui-btn-primary" id="saishi" type="button" style="width: 250px;color: white">进 &nbsp;&nbsp;&nbsp;入</button>
        </div>


        <!--战队赛事-->
        <div id="shouhou6" style>

            <div class="layui-inline">
                <div class="layui-input-inline">
                    <input lay-verify="required" autocomplete="off" id="teamName" class="layui-input" placeholder="输入战队名称" type="text">
                </div>
            </div> <br><br>
            <button class="layui-btn layui-btn-primary" id="team" type="button" style="width: 250px;color: white">进 &nbsp;&nbsp;&nbsp;入</button>
        </div>
        <#--<input type="button" id="login" value="立即登陆" class="submit_btn" />-->

        <p class="fontsize">${di}</p>
    </div>

</div>
<script>

    //查询项目
    $('#a').on('click',function () {

        window.location.href = "${base}/student/student_index.html?idNumber="+$("#idNumber").val()+"&idNo="+$("#idNo").val()

    });

    //学员
    $('#k').on('click',function () {

        window.location.href = "${base}/student/student_index.html?idNumber="+$("#stuidNumber").val()+"&idNo="+$("#stuidNo").val()

    });



    //资格
    $('#b').on('click',function () {

        window.location.href = "${base}/occupation/occupation_index.html?idNumber="+$("#zheng").val()+"&idNo="+$("#bianhao").val()

    });


    //授权机构
    $('#c').on('click',function () {

        window.location.href = "${base}/authorization/authorization_index.html?unitName="+$("#au").val()

    });


    //指定考核基地查询
    $('#d').on('click',function () {

        window.location.href = "${base}/authorization/authorization_index.html?unitName="+$("#auName").val()

    });



    //个人赛事
    $('#saishi').on('click',function () {

        $.ajax({
            type:"get",
            url:"${base}/individualEvent/listIndividualEvent",
            data:{idNumber: $("#saishiIdNumber").val(),name: $("#saishiName").val()},
            success:function (data) {
                if(data.count!=0){
                    window.location.href="${base}/individualEvent/individualEvent_index.html?idNumber="+data.data[0].idNumber+"&mame="+data.data[0].name+"&city="+data.data[0].city+"&id="+data.data[0].id; ;
                }else{
                    window.location.href="${base}/individualEvent/individualEvent_index.html";
                }


            }
        });
    });

    //战队
    $('#team').on('click',function () {
        $.ajax({
            type:"get",
            url:"${base}/team/selectTeamName",
            data:{teamName: $("#teamName").val()},
            success:function (data) {
                if(data.count!=0){
                    window.location.href="${base}/team/team_index.html?teamName="+data.data[0].teamName+"&city="+data.data[0].city+"&id="+data.data[0].id;

                }else{
                    window.location.href="${base}/team/team_index.html";
                }

            }
        });
    });

    //键盘事件
    $("body").bind("keydown",function(e){
        // 兼容FF和IE和Opera
        var theEvent = e || window.event;
        var code = theEvent.keyCode || theEvent.which || theEvent.charCode;
        if (code == 13) {
            //回车执行查询
            $("#login").click();
        }
    });

    function denglu() {
        window.location.href='${base}/user/adminlogin.html'
    }


</script>

</body>
</html>

